{extend name="layout/layout" /}

{block name="content"}
<blockquote class="layui-elem-quote quoteBox" style="height: 38px;line-height: 38px;">
    <div class="layui-input-inline">
        <h2 >线上商城销售单详情</h2>
    </div>
    <div class="layui-input-inline" style="float: right;">
        <a  href="javascript:history.back(-1)"  class="layui-btn layui-btn-normal "><i class="layui-icon">&#xe65a;</i>返回</a>
    </div>
</blockquote>
<div style="padding: 20px; background-color: #F2F2F2;">
    <div class="layui-row layui-col-space15">
        <div class="layui-col-md6">
            <div class="layui-card">
                <div class="layui-card-header">订单编号: {$info.order_no}</div>
                <div class="layui-card-header">商品金额: ¥{$info.order_price}</div>
                <div class="layui-card-header">优惠金额: ¥{$info.discount_price}{if $info.first_order_reduce > 0}（首单立减）{/if}</div>


                {if $info.address_id}
                    <div class="layui-card-header">收货人: {$info.member}</div>
                    <div class="layui-card-header">收货地址: {$info.address}</div>
                    <div class="layui-card-header">配送费: ¥{$info.freight}</div>
                {/if}
                {if $info.pickuppoint_id}
                    <div class="layui-card-header">提货点: {$info.pickuppoint_name}</div>
                    <div class="layui-card-header">提货地址: {$info.pickuppoint_address}</div>
                    <div class="layui-card-header">提货点营业时间: {$info.busstime}</div>
                {/if}
                <div class="layui-card-header" style="font-size: 18px;">支付方式: {$info.pay_method}</div>
            </div>
        </div>
        <div class="layui-col-md6">
            <div class="layui-card">
                <div class="layui-card-header">订单创建时间: {$info.create_date}</div>
                <div class="layui-card-header">订单支付时间: {$info.pay_date}</div>
                <div class="layui-card-header">订单状态: {$info.status}</div>
                <div class="layui-card-header">配送/自提: {if $info.deliver_method==1}配送{else/}自提{/if}</div>
                <div class="layui-card-header">配送时间: {$info.create_date}</div>
                <div class="layui-card-header" style="height: auto;">备注: {$info.content}</div>
                <div class="layui-card-header" style="font-size: 18px;">支付金额: ¥{$info.total}</div>
            </div>
        </div>
    </div>
</div>
<table id="dataTable" lay-filter="dataTable"></table>
<blockquote class="layui-elem-quote quoteBox" style="height: 38px;line-height: 38px;margin-top: 20px;">

    <div class="layui-input-inline" style="float: right;">
        {if $info.address_id}
        {if $info.status == '备货中'}
        <button class="layui-btn layui-btn-normal confirm_beihuo">确定备货</button>
        {elseif $info.status == '备货完成'}
        <button class="layui-btn layui-btn-normal confirm_peisong">配送发货</button>
        {elseif $info.status == '配送中'}
        <button class="layui-btn layui-btn-normal order_track">物流跟踪</button>
        {elseif $info.status == '已完成'}
        <button class="layui-btn layui-btn-normal order_track">订单物流</button>
        {/if}
        {else/}
        {if $info.status == '备货中'}
        <button class="layui-btn layui-btn-normal confirm_beihuo">确定备货</button>
        {elseif $info.status == '待自提'}
        <button class="layui-btn layui-btn-normal confirm_peisong">待提货</button>
        {/if}
        {/if}
    </div>

</blockquote>
<input type="hidden" id="order_id" value="{$info.id}" >
<input type="hidden" class="detail_url" value="{:url('admin/saleol/detail')}?id={$info.id}">
<input type="hidden" class="search_cangku_url" value="{:url('admin/saleol/search_cangku')}">
<input type="hidden" class="peisong_url" value="{:url('admin/saleol/peisong')}">
{if $info.address_id}
{if $info.status == '备货完成'}
<div class="layui-form-item" id="peisong" style="display: none;margin-top: 10%">
    <div class="layui-inline" style="width: 84%;">
        <label class="layui-form-label">快递公司</label>
        <div class="layui-input-block">
            <select id="kuaidiselect">
                <option value="0">请选择</option>
                {volist name="express" id="vo"}
                <option value="{$vo.code}">{$vo.name}</option>
                {/volist}
            </select>
        </div>
    </div>
    <div class="layui-inline" style="width: 84%;">
        <label class="layui-form-label">快递单号</label>
        <div class="layui-input-block">
            <input type="text" class="layui-input" id="kuaidino" name="kuaidino" maxlength="20" placeholder="快递单号" autocomplete="off">
        </div>
    </div>

</div>
{/if}
{/if}

{/block}

{block name="pagescript"}
<script>
    var DELETE_URL = "{:url('admin/product/delete')}";
</script>
<script src="__STATIC__/admin/pages/js/seleolDetail.js" type="text/javascript"></script>
{/block}